home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / phones.arc / COMM.TXT < prev    next >
Text File  |  1991-02-24  |  13KB  |  301 lines

  1. Q63482 Enhanced Mode Error: COM Port Assigned to DOS Application
  2. Microsoft Windows 3 Retail Product (WIN3)
  3. 3.00
  4. MS-DOS
  5.  
  6. Summary:
  7.  
  8. This article contains information on possible causes for the following
  9. Microsoft Windows version 3.00 enhanced mode error:
  10.  
  11.    The COM port is currently assigned to a DOS application.
  12.    Do you want to reassign the port to Windows?
  13.  
  14. 1. If the Port in Question Is COM3 or COM4
  15. ------------------------------------------
  16.  
  17. COM3 or COM4 may NEVER be used from Microsoft Windows 3.00 enhanced
  18. mode by ANY Windows or DOS application without making a modification
  19. to the SYSTEM.INI file as follows. Insert the following two lines in
  20. the [386ENH] section:
  21.  
  22.    COM3Base=3E8h
  23.    COM4Base=2E8h
  24.  
  25. This modification should eliminate the problem. If the problem
  26. persists after this modification, verify that you have properly
  27. inserted the lines as shown above (they are not case-sensitive). If
  28. they are correct, the hardware interrupt (IRQ) and/or base I/O
  29. addresses may be incorrect for one or more hardware COM ports in your
  30. system. The following are the IBM standard port settings for COM3 and
  31. COM4. For further information about this topic, and IBM standard
  32. settings for COM1 and COM2, see Section 2, below.
  33.  
  34.    COM3 - hardware interrupt (IRQ) 4, base I/O address 3E8
  35.    COM4 - hardware interrupt (IRQ) 3, base I/O address 2E8
  36.  
  37. 2. If the Port in Question Is COM1 or COM2
  38. ------------------------------------------
  39.  
  40. Is COM3 or COM4 being used? COM1 and COM3, or COM2 and COM4, cannot be
  41. used simultaneously on any machine that does not have a micro channel
  42. (MCA) bus, such as IBM PS/2 machines, or the new extended industry
  43. standard architecture (EISA) bus, such as the COMPAQ SystemPro. This
  44. is a hardware limitation; there is no workaround. See the More
  45. Information section for further details.
  46.  
  47. If neither COM3 or COM4 is being used, then the hardware interrupt
  48. (IRQ) channels and/or base I/O addresses for COM1 and COM2 may be set
  49. incorrectly. On a non-PS/2 machine, these settings are made by using
  50. hardware DIP switches or jumpers. Consult your hardware documentation
  51. for information on such settings. If you need further assistance in
  52. properly configuring your hardware, contact your hardware vendor or
  53. manufacturer. The correct IBM standard settings for COM1 and COM2 are
  54. as follows:
  55.  
  56.    COM1 - hardware interrupt (IRQ) 4, base I/O address 3F8
  57.    COM2 - hardware interrupt (IRQ) 3, base I/O address 2F8
  58.  
  59. More Information:
  60.  
  61. COM1 and COM3, or COM2 and COM4, may not be used simultaneously on any
  62. system that does not use an MCA bus, such as an IBM PS/2, or an EISA
  63. bus, such as a COMPAQ SystemPro. This is because the normal Industry
  64. Standard Architecture (ISA) bus does not implement hardware interrupt
  65. (IRQ) sharing. IRQ sharing allows multiple devices, such as COM ports,
  66. to use the same hardware interrupt. Note that by default, the
  67. COM1/COM3 and COM2/COM4 pairs of ports use the same interrupts. This
  68. is a hardware limitation; there is no possible workaround other than
  69. not using these pairs of ports simultaneously.
  70.  
  71. The Windows version 3.00 enhanced mode SYSTEM.INI setting
  72. "ComIRQSharing=true" (without the quotation marks) is not intended for
  73. use on ISA bus equipment. It will have little or no impact on this
  74. problem. It is present for such rare cases as when Windows could
  75. conceivably identify an MCA or EISA bus machine incorrectly, and fail
  76. to implement IRQ sharing. In such cases, IRQ sharing could be properly
  77. enabled with this switch.
  78.  
  79. COPYRIGHT Microsoft Corporation, 1990.
  80. Updated  90/07/10 15:43
  81.  
  82.  
  83.  
  84. Q64818 Troubleshooting Commmunications Under Windows 3.00
  85. Microsoft Windows 3 Retail Product (WIN3)
  86. 3.00
  87. MS-DOS
  88.  
  89. Summary:
  90.  
  91. The following table depicts the standard settings for the four
  92. communications ports that Microsoft Windows 3.00 and DOS (4.01)
  93. support. This information is useful for troubleshooting communications
  94. problems under Windows 3.00. A brief description for each column
  95. appears below the table. (Note: In the table below, Windows 3.00 is
  96. abbreviated as WIN3.)
  97.  
  98.            WIN3 COMM.DRV    WIN3  Default       WIN3 Desired
  99.             Procom Plus   SYSTEM.INI Settings SYSTEM.INI Settings
  100.    Port   I/O Range  IRQ      I/O Range          I/O Range
  101.    ----  ---------------- ------------------ ------------------
  102.  
  103.                             [386ENH]           [386ENH]
  104.    COM1      3F8h     4     COM1BASE=3F8h      COM1BASE=3F8h
  105.    COM2      2F8h     3     COM2BASE=2F8h      COM2BASE=2F8h
  106.    COM3      3E8h     4     COM3BASE=2E8h      COM3BASE=3E8h
  107.    COM4      2E8h     3     COM4BASE=2E0h      COM4BASE=2E8h
  108.  
  109. The first column lists the ports. The second column describes the
  110. settings for the ports that both the Windows COMM.DRV and most popular
  111. communications packages use by default. The third column shows what
  112. Windows 3.00 sets by default and the fourth column shows what should
  113. be set in the [386ENH] section of the SYSTEM.INI file for proper
  114. functioning of the ports under enhanced-mode Windows 3.00.
  115.  
  116. Note: You must make the changes shown in column 4 above if you want to
  117. share IRQs. These procedures are described in good detail in
  118. SYSINI2.TXT under the [386ENH] section.
  119.  
  120. More Information:
  121.  
  122. The headings "I/O Range" specify the base port addresses for the
  123. respective ports. IRQ represents the normal interrupts used in IBM-AT
  124. compatible computers and should not be changed under normal
  125. conditions. Under enhanced-mode Windows 3.00, you can change the base
  126. port addresses, IRQ lines, communications protocol, and communications
  127. IRQ sharing. For complete information on any of these topics, please
  128. consult the file SYSINI2.TXT.
  129.  
  130. Troubleshooting Communications Problems Under Windows 3.00
  131. ----------------------------------------------------------
  132.  
  133. 1. You can use two communication ports simultaneously that share the
  134.    same interrupt (for example, COM1 and COM3, or COM2 and COM4) only
  135.    if the hardware is capable of it. The ability to share
  136.    communications port IRQs is hardware dependent. Currently, the
  137.    only hardware that you can be assured that IRQ sharing is supported
  138.    on is MicroChannel. Although EISA (Extended Industry Standard
  139.    Architecture) does have IRQ sharing as part of its specifications,
  140.    implementation on current machines is spotty. If you are unable to
  141.    successfully share an IRQ with the COMIrqSharing switch set to
  142.    true, the hardware does not support IRQ sharing and Windows 3.00 is
  143.    not able to overcome the lack of support for this feature using
  144.    software.
  145.  
  146. 2. COM3 and COM4 may not be reliable under Windows 3.00 (standard and
  147.    real mode) unless both COM1 and COM2 are first activated. If you
  148.    use only COM3 and/or COM4, you may experience problems (with
  149.    printing, communications, your mouse). If you use COM1 and COM3
  150.    without using COM2, you also may have problems. The easiest way to
  151.    remember this is to not use a higher serial port (2, 3, or 4)
  152.    unless all lower number ports (1, 2, and 3) are first activated (or
  153.    in use).
  154.  
  155. 3. Standard- and real-mode Windows 3.00 use the COMM.DRV directly
  156.    whereas enhanced-mode Windows 3.00 virtualizes the ports using a
  157.    device called the virtual communications driver (VCD). For this
  158.    reason, serial communication can theoretically be considered more
  159.    reliable under standard and real mode because there can be no
  160.    miscommunication between the VCD and the COMM.DRV. In cases where
  161.    you are using multiple communications ports under Windows 3.00
  162.    enhanced mode, verify that the base port addresses are set as
  163.    described in the table located earlier in this article.
  164.  
  165. Note: IRQ sharing is possible under enhanced-mode Windows 3.00 only if
  166. you make the necessary changes to the [386ENH] section of the SYSTEM.INI
  167. file as outlined above.
  168.  
  169. COPYRIGHT Microsoft Corporation, 1990.
  170. Updated  90/11/21 05:24
  171.  
  172.  
  173.  
  174. Q65796 Debugging Communications Problems in Terminal (TERMINAL.EXE)
  175. Microsoft Windows 3 Retail Product (WIN3)
  176. 3.00
  177. MS-DOS
  178.  
  179. Summary:
  180.  
  181. Most problems associated with the Terminal program packaged with
  182. Microsoft Windows version 3.00 occur when your machine does not
  183. recognize that you have the specified COM port available. This
  184. generates the message "The COMx port is currently assigned to a DOS
  185. application. Do you want to reassign the port to Windows?"
  186.  
  187. More Information:
  188.  
  189. To determine if the machine is recognizing the existence of the COM
  190. port, do the following:
  191.  
  192. 1. Use the DOS DEBUG command to look at the BIOS table.
  193.  
  194. 2. At the DOS prompt (outside of Windows), type "DEBUG" (without the
  195.    quotation marks). This will return a hyphen prompt (-).
  196.  
  197. 3. At the hyphen prompt, type "d40:0" (without the quotation marks)
  198.    and it will return a listing of the BIOS data. You will be back at
  199.    a hyphen prompt where you can type Q to quit DEBUG.
  200.  
  201. 4. Look at this table of data on the screen. The first row is the
  202.    important one. It will show something as follows:
  203.  
  204.       0040:0000  F8 03 F8 02 E8 03 00 00-BC 03 78 03 00 00 00 00
  205.  
  206.    Everything to the left of the center hyphen is COM ports;
  207.    everything to the right is LPT ports. The example above shows that
  208.    the computer has COM1 at address 03F8 (it is listed in reverse byte
  209.    order), COM2 at 02F8, and COM3 at 03E8. COM4 is not found, thus
  210.    displaying 0000 just to the left of the hyphen. If the machine does
  211.    not recognize the COM port desired to be used by Terminal
  212.    (identified by the 0000 entries), continue as follows. If the
  213.    machine does recognize the desired COM port, skip to the
  214.    SYSTEM.INI Modifications section below in this article.
  215.  
  216. 5. Make a script file for DEBUG to execute in the AUTOEXEC.BAT. The
  217.    script can be made using NOTEPAD.EXE. To illustrate this, the
  218.    following examples for COM ports are provided. The second line of
  219.    the examples provided should be edited to match the hardware that
  220.    is in use in the computer. Although the examples given are the most
  221.    popular, there will be exceptions to these.
  222.  
  223.       COM1                                    COM2
  224.       ----                                    ----
  225.  
  226.       E40:0                                   E40:2
  227.       F8 03                                   F8 02
  228.       q     <-Followed by ENTER               q     <-Followed by ENTER
  229.  
  230.       COM3                                    COM4
  231.       ----                                    ----
  232.  
  233.       E40:4                                   E40:6
  234.       E8 03                                   E8 02
  235.       q     <-Followed by ENTER               q     <-Followed by ENTER
  236.  
  237. Do the following:
  238.  
  239. 1. Save the three-line file from Notepad giving it a name such as
  240.    C:\FIXCOM3.DEB or C:\FIXCOM4.DEB, depending on which port it is.
  241.  
  242. 2. Add a line to the end of the AUTOEXEC.BAT such as the following:
  243.  
  244.       DEBUG < FIXCOM3.DEB > NUL  or DEBUG < FIXCOM4.DEB > NUL
  245.  
  246. 3. Save the AUTOEXEC.BAT and reboot the machine.
  247.  
  248. The > NUL ending is just to keep the script from being echoed back to
  249. the screen. You can use DEBUG again to look at d40:0 and see if the
  250. change has taken effect.
  251.  
  252. SYSTEM.INI Modifications
  253. ------------------------
  254.  
  255. If the port is recognized by the machine, note the address that is
  256. listed when using DEBUG and edit the SYSTEM.INI COMxBase= lines to
  257. coincide with the base I/O address used by the hardware. The examples
  258. given above for COM1 and COM2 would not require any changes to the
  259. SYSTEM.INI file.
  260.  
  261. However, the examples given below for COM3 and COM4 would require the
  262. following entries to the [386enh] section of the SYSTEM.INI file:
  263.  
  264.    COM1Base=3F8h                   <default is 3F8h>
  265.    COM2Base=2F8h                   <default is 2F8h>
  266.    COM3Base=3E8h                   <default is 2E8h>
  267.    COM4Base=2E8h                   <default is 2E0h>
  268.  
  269. Additional Considerations
  270. -------------------------
  271.  
  272. If you are using a serial mouse on COM1 and you have an internal modem
  273. on COM3, this configuration won't work because the mouse is tying up
  274. the interrupt that is desired to be shared by COM3. This behavior also
  275. occurs if you are using a serial mouse on COM2 and want to use an
  276. internal modem on COM4.
  277.  
  278. You may also use the following steps to test what port the modem
  279. is connected to from the DOS command line:
  280.  
  281. 1. At the DOS prompt, type "Mode com1: 1200,e,7,1" (without the
  282.    quotation marks).
  283.  
  284. 2. Type "COPY CON COM1:" (without the quotation marks) and press ENTER.
  285.  
  286. 3. Type "ATDT 12345678901234567890" (without the quotation marks) and
  287.    press ENTER.
  288.  
  289. 4. Press CTRL+Z or F6.
  290.  
  291. This sends a command to the selected port and tells the modem to dial
  292. the numbers 1-10 twice. The internal speaker on the modem should emit
  293. an audible series of tones if it is connected to the named port.
  294.  
  295. If no tones are heard, try the test on the remaining COM ports until
  296. you get a response. If the modem does not respond, try connecting the
  297. modem to a different port and repeat the test sequence above.
  298.  
  299. COPYRIGHT Microsoft Corporation, 1990.
  300. Updated  90/12/05 06:33
  301.